Crate descriptors
source · [−]Expand description
General workflow for working with ScriptPubkey* types:
Template -> Descriptor -> Structure -> PubkeyScript -> TxOut
TxOut -> PubkeyScript -> Descriptor -> Structure -> Format
Modules
Relative and absolute time locks on transactions
Structs
Information about pay-to-contract output tweaks applied to single-key based outputs (P2PK, P2PKH, P2WPKH, P2WPKH-in-P2SH).
Allows creating templates for native bitcoin scripts with embedded key generator templates. May be useful for creating descriptors in situations where target script can’t be deterministically represented by miniscript, for instance for Lightning network-specific transaction outputs
Information about pay-to-contract output tweaks embedded into script-based outputs (bare scripts, P2SH, P2WSH, P2WSH-in-P2SH).
Information about tapret output tweaks.
OP_RETURN
-tweaked taproot descriptor.
Enums
Descriptors exposing bare scripts (unlike miniscript::Descriptor
which
uses miniscript representation of the scripts).
Keeps tweak information on all kinds of transaction output tweaks required
for the wallet to reconstruct actual scriptPubkeys
for the given wallet
descriptor.
Descriptor parse error
Errors indicating variants of misformatted or unsupported (future)
pubkeyScript